Refactor: created BitmapManager to handle image resizing and scaling