Created Photo class with JSON functionality.