fixed polygon scaling issues while loading from container to imagepainter
Polygons weren't scaled properly when it was checked if they were clicked, which led to a 'ghost outline' larger than the actual outline, at least in the case where the image was scaled down to fit a smaller screen. The code that checked if the next point would overlap one of the existing polygons had the same issue.