populate images function