Fixed devise for correct work, added photo to category model