Fix bugs with hash class image