improved frame extraction (including alpha)