Oh... never mind. I used BitsPerPixel instead of BytesPerPixel

Problem solved.