Cover all formats?
Fix, wrong calculation in scaleImage