core: refactor user picture page algorithm

Signed-off-by: Skia <skia@libskia.so>
1 job for master in 4 minutes and 19 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #1140
test

00:04:19