images function update