Absolute path in draw()

Added absolute path support in draw(), this was a required change to work in my project.

To enable absolute path support