auto set body size based on texture size