fix bug in isItAnImage

related to array handling, amazing this even worked in the first place
renamed variables to make things clearer; t => types
ran `make push`