convert bmp to jpg for beamer