adding photo functioanlity