added proper image url handler