Make ratio configurable in WMS single image

This supersedes #323. Just history rewrite.