new updates to code wrt img,caption,table,and alignments