Added type loading for displaying an image upload, option to not display the alert box and automatic closing