A handful of equations to manipulate images