Fixed a bug in Image.merge and a typo

Changed 'and' to 'or' and 'is not' to 'isnt'