Get list of images function.