All these should work (from S3 plugin):
osc_add_filter('resource_thumbnail_url', 'stc_update_img_url');
osc_add_filter('resource_preview_url', 'stc_update_img_url');
osc_add_filter('resource_original_url', 'stc_update_img_url');
osc_add_filter('resource_url', 'stc_update_img_url');
Or function stc_get_image_url itself.