added html img tags with optional scaling percentage size flag