Changed functions to better follow "DRY" (Don't Repeat Yourself)

Added overwrite protection so now users won't overwrite any saved thumb data