fixed issue where image resolution can't be bigger than display