change image layout version and call resize within method