modify img insertion