Added support for auto layout by adding the mask on layoutSubviews

When I add constraints to an imageView and don't set its frame, `setFrame:` is not called. Thus, the mask is not set.
So I changed the implementation to call `addMaskToBounds:` on `layoutSubviews` instead of `setFrame:`