fix photo size problem