Applying image effects to graphics