Completely reworked it, fixing the distortion bug. Now includes horizontal
and vertical mirroring as well as rotating it (clockwise,
counter-clockwise, and by 180 degrees).