photo gen in controller bug