Made autorotation feature of gd.createFromPtr() switchable.