Convert image to bmp