jpg to bmp and updated diagrams