image scaling in jpg to bmp