Added bitmap structure and modified JPEG extraction to fill the bitmap
Images are now written as BMP files