jpg support (at least partial)