add loop and loc to image pos