fix rotate90 for exotic resolutions