adding support for choosing photo