Added dimension testing on resulting image
identation cleanup