small fixes & added upsize param to resize function
small fixes & added upsize param to resize function