thumbs: shrink images only & code style