Fixed #72. The offset of the shadow wasn't being taken into consideration when expanding the frame.