edit photos implementation