updated to add tint and cropping