correctly scale rect areas in image map