update photo size