Various ruby image improvements