Added get_pixels method