fix image preview ajax