code improvements in OverlayFactory, added a downscale factor to create a smaller bitmap for display