Add support for jpg images in image upload