gif,jpg,etc in pascal

i am trying to write a program that incorporates graphic images (any format is
ok).  i can't find help in my manuals on this.  i have found a freeware source
for viewing gif format however the tpu is compiled in tp4.0 (i think) and i am
using btp7.0.  if someone can help me, preferably send me some example source
code that is runable, i would greatly appreciate it.  however please keep it
simple i have only had 2 semesters of pascal.
thank you
jeff hill