! New images would not show the first time.

It seems $this->username is never properly set. Using $username there is safe, however, as only safe usernames per the preg_match in check_username will allow the code to reach that point.