Thanks Bernard and Jacqueline. The trick was to put my image resize script inside the (previously unknown to me) resizestack handler. -- Nicolas Cueto