process image on the backend if FileReader API is not supported