Fixes wrong variable reference in __image_resize()