Implemented get_pixel_data()