Fixed upscaling and added a property to know the scale factor. Fixed mouse click.