Adding functionality for jpg images (different than the raw file format we are using from the Pentax 645D camera)