register imagerest blueprint
check if X-Requested-With header is present