don't save pics path if it is empty