various snippets for imagemagick