scale the images nicely using the widthratio function