Move genImageThumb to util.MediaHelper.
More complex thumbnail generation.