Making GetImages return an error
Handling errors more tersely