making photos consistent again, hopefully fix 500 error