See the Pen priDI: Dynamic Imaging & Picture example by Ben Seymour (@bseymour) on CodePen.