added function for returning path to picture that prefers thumb if exists