added htmlparser to extract images and titles