added img parsing