I'm doing something similar with JPEGs but I always set DIBNeeded := True first and I dont seen to have any problems.