image upload and a12n for mercury