Reworked photo route to enable auto resizing if uploaded photo width is greater than 1170px