move arguments to object, fix image loader