support added for calculating absolute path of images