Implemented switching to Insert mode upon successful upload of an image.