add new image asserts and fixed minor bugs