fixed bug in ->rgba conversion