rotate captured image so it has the same orientation that the device
crop captured image to a size of 800x400
make frame occupy all the screen