add attempt at image scaling