Don't let thumbnail fall off player

This currently only works if the thumbnails are images that use `clip: rect()` for the sprite.

It gets the width of the sprite and make sure that left isn't bigger than size of player minus half sprite width and that it isn't smaller than half sprite width.