loaing image from resources-working.trying to made code meet RESTful
creteria more by adding doDelete method using ajax.Cant do that using
HTTP as HTTP doesnt support doDelete