Fixed conversion to pixel data