Multimode image memory based on a cold atomic ensemble