Fixed getting dimensions of videos and flashes