Fixed an issue with image scaling and annotations scaling.