Changed photos controller inheritance