put images in public foldeR
Add fail function when api fails