center the image initially
added a fitting mode, which pads the image to be fully visible