test setting imagetype