I will not support landing anything that includes adding a callback to this function - You can put the resize code in the requestAttachment and it's way smaller, less lines changed.