Lightweight image manipulation