fix bug orientation and picture size