Processing image data from the device