Made the Frame container actually functional. Also added element size handling.