changed getimage (from username to id)