Okay I think I see the problem $resize should be changed to $source thorughout. Do I submit a new PR?