fixed bugs in site option saving for file/image