Trim resolutions so they are a factor of 2.

Currently ol3 appears to be assuming that resolutions are always a
factor of 2, need to look into it more.