resize happens in the GetBlob function itself