That code is no longer valid unless you have an old 16-bit box around.
Today we use TBitmaps for images and TImageList to store a series of images.
use the Canvas to paint them.
Maybe you should look into the OpenGL, there are samples that comes with the install.