updated imagetype, old versions will work too