[Fixes #79625136]  scaling images to the size of the bitmap view while maintaining aspect ratio