try to make images resize with window