jpg and bmp export now works