change offset to int
increment offset to load single image at startup