rescale image map on image load