replacement for pixel_get_color