try to improve when the popup image resize is called