Updated attachement image url method.