Unload the image_module from the memory after resizing the image