loading image first then data