load image and create position array