add resource path and upload images