Cleaned some code. Fixed logic behind the upload image method. Allowed
ability to deleted an image.