Added basic JPEG support