changed diagram image to jpg