Fixed photo handling to actually work