Debuging while photos not working