add tests for imagemagick functionality