adding support for custom resolutions