truncate images