resize jpg is working