Put in imagemagick stuff and about to delete a whole lot of subarray stuff