extract pixel values