fixed s3, added default img and image white list