ADD: compress stack.xml
FIX: don't upscale thumbnail if image is below 256 pixel wide/high