fixed a bug with the observer function that causes it not to re-generate thumbnails in some situations