Bug 1069652 - Optimize imgFrames only when unlocking. r=mwu