look ma, no imagemagick!