fixing picture size changed