(*)generate jpeg too, since it's much smaller than png format