Pic ID generator algorithm changed