fix img src problem and add support for external images like s3upload field