move getPixelBytes to SupportExt