More robust input handling for client.getImages in aws