It looks like either an unsupported format, or a problem with the video memory. What you're doing seems right, except that you don't need to purge the bmaps because removing them purges them anyway.

Does this happen on different systems or only on one?