Attempt to make scale2x support multiple destination size ratio