Add try catch for createImagePreviews

1 job for dev in 1 minute and 46 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Deploy
passed #39131
deploy_dev

00:01:46