Simplified the uploading of images