solved movie dimension detection, simplified some things.