Add density attribute to imagemagick templates to improve image quality