changed max id and min id for recent images query to string