add support for JPG