Merging Modified edit Image code