fixed problem with adding/removing pics from flashcards already in
database