add resize image method to PhotoController