refined some function, images ready check