My knowledge of layered images are limited but I did know a plugin that used it to make eye blinks work. Not sure if it's applicable to lip flaps but it is possible (though some python was involved)