changed click event for added pictures