Merge pull request #1 from relekang/alternative_resolutions

fix bugs in generation of alternative resolutions
fix bugs related to alternative-resolutions and cropping

If the crop parameter is set with pixels we need to scale them according
to the resolution