refactoring text effects on images