convert pictures to getimage and putimage

I am looking for any information on how to display a graphic, (pcx, gif,
jpeg, bmp etc) and then be able to capture it or part of it with
getimage. If that is not possible does anyone know of a way to display a
graphic in a window on the screen while running a program in graphics
mode? Any assistance would be greatly appreciated.