Direct upload for GIF and JPEG.

GIF and Jpeg images will be directly uploaded to the server without
re-encoding.