image upload: return extension together with id and status