fixed pointer issues which were causing segfaults
added support for set scaling properties (currently don't set these though. might turn this off.)