Fix error handling
Add fromTime parameter to filter out old images