Pass element to the uploadImage call.