work on photo dialog