imagemagick workaround