Attempt at fixing img clipping on osx