getting image data from camera