changes to image scaling, almost there