Refactering add, delete image functions.
- functions move from controller class to model class.
Refactering edit image function.
- impl updateImageFile function at model class.