force canvas to draw image at specified size