altered thumbnail scaling (issue #553)
- ensure full image is inside max. area
- don't scale up
- css correction