update picture size