adjust photo scaling