Losing Palette

I'm doing some rotations on a jpeg image and losing the palette along the
way. I assign the picture to a bitmap, do my rotations, assign the result to
a JPegImage, and assign that back to the TImage I started with. I've tried
everything I can think of with Palette and PaletteModified, but the final
picture is still trashed. What am I missing? Both the picture and my display
are 256 color.
Tim Borman
please reply to this newsgroup