fixing megapixel issue