Update images and add active record