fix issue #26
Fix image size / Fix required filed in ad relates to issue #27
fixes #27, #28
Merge branch 'master' into sami_ver1