Moved logic for upload image to the helper service