I think this is not really comfortable. Because my posted code is only an example.
In real code there are two default images. One for male and another one for female users.
And the myclass is a user-management class. The Image is called in many Templates. And often with different sizes using $Image.setWidth(xx)
With "parent::Image()" youÂ´re infact calling DataObject::Image() which does not exist.
But I'm wondering why this works on my local machine. (php Version 5.2.10).
But same Code on my Webserver (php Version 5.2.0-8) causes this error.