working out imagemagick issues