added image uploading features using mini_magick