fixed setting of size after image load