adds jp2 size validation.