Photo class fix