Added original size parameter for resize

Change as discussed.