non ho letto l'ultima tua risposta....
basta invertire le operazioni che fai sui frame...