Add check for current texture size