fix max photo size