Changed smart_img function to include alt-tag