Handling different resolutions