Add single image detection fuctionality