img onload listener for dimension filtering