Added basic logic for update.
Added new image upload and converted single image to gallery.