Added overlay selection

Issue: the bitmap gets free'd  too early.