add picture size change for server