Finally managed to prevent the same pic being able to be clicked twice..