Prevent pictures from being appended twice