Added original size parameter for resize