Start moving imagemagick stuff into separate include file