fix image load bug, fix window compatible bug