resize writing photos