Fix Form and Replace lib_image to lib_encode