Maximum image size in image viewer

Hi guys, I want the image viewer to display a picture in a certain size (so it doesn't mess up the rest of my layout) but when I set it to for instance 100x100px it will stretch the image to this size. However, I want the image not to be stretched out but to maintain its original aspect ratio. In other words, I want this 100x100px size to be the MAXIMUM rather than the forced size. Any ideas on how I can obtain this?
1 answers

Use the dynamic image viewer from the appstore Viewer

Set the image attribute to the 'fileID' attribute, and the prefix to /file?fileID=