Fix severe bug in getMem3ImageComponents.