fixes #8 add a filter so that a custom image_downsize function is called. It may create a bug if its execution takes more than 30 seconds.