adding JPG support