pre resize
bilinear added
nn and masking
pretty sure its done