Explicit lossless jpg images, try catch in case of exceptions