[1] Fixed wrong variable on resize image function [2] Updated models to include resize function