Uploading of images moved to background task