Generate image and URL