Jpg support for state chart images