fit image to 128x128 and keep aspect ratio, closes #1240