Remove redundant if statement

In image.cpp removed a redundant if statement in the
simplify_type function.