fix pic partition bug

Fix bug in picture partition number decision(multi-threading). Which is introduced by code clean up early.