append photos dynamically after uploaded