The internal algorithm sets the difficulty - it seems to be based on size versus the number of blacks - when you're designing a Hanjie, adding or subtracting even one square can change the difficulty dramatically! Roughly speaking though, the bigger the picture and the fewer squares, the more points you get :)
I just don't understand why 5* of difficulty, it occured to me as pretty easy.