This should be two tests. One for imagetype None and another for imagetype something