add image method to controller