Fixes image scaling, closes #76.