Fixed infinite loop bug with the getter for SGDocument's image