making photo by a button