calling getImagebyId only page refresh