select an image fro gallary, and read dimension info without loading image data into memory