Image: refactoring, getImageResource() replaced with $this->image