added feature to resize photos on upload with crop