Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Bug description:
#73
I changed the css and added code to scale height while keeping aspect ratio using "object-fit: contain". For height I picked 85vh arbitrarily because it works on all reasonable computer screen resolutions. Not perfect but seems to work better than current.
Keeping aspect ratio with "object-fit: contain" creates a margin within the canvas on the smallest side of the image. Therefore I had to adapt the function that calculates the mouse position, since it was based on the whole canvas and now need to account for the difference between the canvas and the displayed image.
Tested on chrome + firefox using all available resolutions from windows settings. It works on classification, bbox, landmarks, could not test it on other tasks because I don't have working examples. @smistad can you check for yourself, or provide me with files to create test datasets with?
@jpdefrutos told me maybe I should have modified get_image_as_http_response() from utility instead:
get_image_as_http_response
Please review and tell me whether this is a good fix.
Before:

After:
