Automatic tile sizing