[writer] modify way to determine whether lima has an image or not

6 jobs for 1771-lima-scan-with-save_images-false in 67 minutes and 2 seconds (queued for 1 second)
Status Job ID Name Coverage
  Style
passed #113144
check_lint

00:00:23

passed #113143
check_style

00:00:30

 
  Tests
passed #113145
test_bliss

01:01:29

passed #113146
test_writer

00:40:06

 
  Build
passed #113147
create_reference_doc

00:05:03

passed #113148
create_user_doc

00:03:53