fix image path issue

when user set package loation for gridx, the image path may be wrong