Added a scale factor to handle image size on high resolution displays.