used curb to control image not found error and also worked with index template