Fix sprite to allow for non-square images. Given width and height are used as maximum values.