realise drawFrame