Fixing issues with naturalHeight / width; Removing debug code.