Added double click to select photo
Code cleanup