[misc][s]: tidy up imagemagick stuff and improve.