Added API for submitting images