add image count to edit action