Support for non square images, fixed newline placement.