I found this great solution: Stop wordpress from hardcoding img width and height attributes
But I was wondering if I could do it only in one specific case and not in all the site because it messes up other stuff. This would be the case:
<?php echo wp_get_attachment_image($attachment->ID, 'six', false, $default_attr); ?>
Removing only height but not width in all the site would also work.