down sample images, see #78, #80, #81