Implemented file upload and modal image dialog.