I'm also a fan of bmap_load(), which you can read about in the beta docs. This will load an image from disk into a previously allocated chunk of memory.