images are uploaded using realPath and resource loader