overlay tests and jpg support