Fixed the issue with square resolutions break things, closes #4