Refactored checkFormat() out in favor of Image.targetFormat()